package com.jzo2o.orders.manager.strategy;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * @author Mr.M
 * @version 1.0
 * @description TODO
 * @date 2023/12/29 11:58
 */
@Slf4j
public class CreditCardPayment implements PaymentStrategy {

    //信用卡号
    private String cardNumber;

    public CreditCardPayment(String cardNumber){
        this.cardNumber = cardNumber;
    }

    @Override
    public void pay(BigDecimal amount) {
        log.info("信用卡{}支付{}",cardNumber,amount);

    }
}
